package com.jtpay.sdk.util;

/**
 * Created by Administrator on 2016/6/7 0007.
 */

public class JftConstants {
    public static final String JUN_FU_TONG_URL_TEST = "http://120.25.94.14:801/";
    public static final String JUN_FU_TONG_URL_FORMAL = "https://api.jtpay.com/";
    public static final String JUN_FU_TONG_URL_STATUS = "http://876hfd.jtpay.com/";
    public static String TEST_PORT = "9000";
    public static String JUN_FU_TONG_URL_TIGER = "http://xwhzpp666.tpddns.cn:";
    public static String JUN_FU_TONG_URL;
    public static String JUN_FU_TONG_URL_COMMON;
    public static String JUN_FU_TONG_URL_PAY_TYPE;
    public static String JUN_FU_TONG_URL_CHANNEL;
    public static String JUN_FU_TONG_URL_INFO;
    public static String JUN_FU_TONG_URL_LOGIN;
    public static String JUN_FU_TONG_URL_QUERY;
    public static String JUN_FU_TONG_URL_ORDER_QUERY = JUN_FU_TONG_URL_FORMAL + "%s/Order/SDKQuery";
    public static final String JUN_FU_TONG_URL_PARAM = "login/jft";
    public static final String JUN_FU_TONG_PLAT_FORM_KEY = "platform_key";
    public static final String JUN_FU_TONG_PLAT_FORM_NAME = "platform_name";
    public static final String JUN_FU_TONG_PRICE = "price";
    public static final String JUN_FU_TONG_USER_CODE = "user_code";
    public static final String JUN_FU_TONG_COM_KEY = "com_key";
    public static final String JUN_FU_TONG_HOST_NAME = "host_name";
    public static final String JUN_FU_TONG_TITLE = "title";
    public static final String JFT_EXCEPTION = "jft_exception";
    public static final String ORDER_PARAM = "sdk/tokenquery";
    public static final long TIME_OUT = 60 << 1L;

    public static void setURLConfig(String urlCommonParam) {
        JUN_FU_TONG_URL = urlCommonParam;
        JUN_FU_TONG_URL_COMMON = JUN_FU_TONG_URL + "ChannelTest/";
        JUN_FU_TONG_URL_PAY_TYPE = JUN_FU_TONG_URL_COMMON + "getpaylist/";
        JUN_FU_TONG_URL_CHANNEL = JUN_FU_TONG_URL_COMMON + "getchannellist/";
        JUN_FU_TONG_URL_INFO = JUN_FU_TONG_URL_COMMON + "getsdkinfo/";
        JUN_FU_TONG_URL_LOGIN = JUN_FU_TONG_URL_COMMON;
        JftLogUtil.log("setURLConfig JUN_FU_TONG_URL_COMMON = " + JUN_FU_TONG_URL_COMMON + " JUN_FU_TONG_URL_PAY_TYPE = " + JUN_FU_TONG_URL_PAY_TYPE + " JUN_FU_TONG_URL_CHANNEL ="
                + " JUN_FU_TONG_URL_INFO = " + JUN_FU_TONG_URL_INFO + " JUN_FU_TONG_URL_LOGIN = " + JUN_FU_TONG_URL_LOGIN);
    }

    public static void setJunFuTongUrlQuery(String urlCommonParam) {
        JUN_FU_TONG_URL_QUERY = urlCommonParam + "/sdk/tokenquery";

    }
}
